package peer.rudp.command;


public class GetMdfCOM2 extends Command{
	int length;
	public GetMdfCOM2(int length){
		this.length=length;
		data=new byte[6];
		commandType=peer.tools.CommandType.command_GetMdfCOM2;
		peer.tools.ByteShortSwitch.toByteArray(commandType, data, 0);
		peer.tools.ByteIntSwitch.toByteArray(length, data, 2);
	}
	
	public GetMdfCOM2(byte[] data){
		this.data=data;
		commandType=peer.tools.ByteShortSwitch.toShort(data, 0);
		length=peer.tools.ByteIntSwitch.toInt(data, 2);
	}
	
	public int getLength(){
		return length;
	}
}
